package com.mall.user.api;

import com.mall.user.entity.param.UserRoleAddParam;
import com.mall.user.entity.param.UserRoleEditParam;
import com.mall.user.entity.vo.UserRoleVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author wuyijie
 * @description: TODO
 * @date 2021/6/20 22:01
 */
public interface UserRoleApi {
    int saveBatch(@RequestBody List<UserRoleAddParam> userRoleAddParamList);

    int deleteByUserId(@RequestParam int userId);

    int updateBatch(@RequestBody List<UserRoleEditParam> userRoleEditParamList);

    List<UserRoleVO> queryByUserId(@RequestParam int userId);


}
